<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="cn.xkshow.plugins.page.*" %>
<%@ taglib prefix="jh" uri="/jh-plugins" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link href="/demo/comm.css" rel="stylesheet" type="text/css" />
</head>
<%
	PageList pglst = new PageList();
	//显示的数据集合
	//pglst.setObjectList(null)

	//构建页码标签
	Page pagem = new Page();
	pagem.setDtotal(666);
	pagem.setPerPageNum(10);	
	if(null!=request.getParameter("cpage")){		
		pagem.setCpage(Integer.valueOf(request.getParameter("cpage")));	    
	}else{
		pagem.setCpage(1);
	}
	pagem.executeCalculate();	
	
	pglst.setPage(pagem);
	
	pageContext.setAttribute("objPgLst", pglst);
//
%>
<body>
<h2>Hello Pages</h2>

<jh:pages value="${pageScope.objPgLst.page}" pageStep="10" javaScript="" styleClass="pages" viewData="all"/>

</body>
</html>
